package cn.u313.lymusic.ui.dialog.loading;

import android.content.Context;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import cn.u313.lymusic.R;


/**
 * 幽灵加载效果
 */
public class LoadingDialog extends LoadingBaseDialog{
    public LoadingDialog(@NonNull Context context) {
        super(context);
    }

    public LoadingDialog(@NonNull Context context, int themeResId) {
        super(context, themeResId);
    }

    protected LoadingDialog(@NonNull Context context, boolean cancelable, @Nullable OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
    }

    @Override
    void initView() {
        LVGhost lvGhost = getView().findViewById(R.id.lv_ghost);
        lvGhost.startAnim();
    }

    @Override
    int getLayout() {
        return R.layout.loading_host;
    }

    @Override
    void initListener() {

    }

}
